
package com.zy.ems.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.zy.ems.common.base.BaseEntity;

public class MemberPaperRecordEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;


    /**
     * ID(db_column: id)
     */
    private Integer id;

    /**
     * 会员ID(db_column: member_id)
     */
    private Integer memberId;

    /**
     * 试卷ID(db_column: paper_id)
     */
    private Integer paperId;

    /**
     * 答题开始时间(db_column: start_time)
     */
    private Integer startTime;

    /**
     * 交卷时间(db_column: end_time)
     */
    private Integer endTime;

    /**
     * 试卷状态(db_column: status)
     */
    private Boolean status;

    /**
     * 所得分数(db_column: score)
     */
    private Float score;

    /**
     * 审核试卷人(db_column: check_user_id)
     */
    private Integer checkUserId;

    /**
     * 审核时间(db_column: check_time)
     */
    private Integer checkTime;

    /**
     * 审核评语(db_column: check_content)
     */
    private String checkContent;


    public MemberPaperRecordEntity(){
    }

    public MemberPaperRecordEntity(
            Integer id
            ){
        this.id = id;
    }


    public Integer getId() {
        return this.id;
    }

    public void setId(Integer value) {
        this.id = value;
    }

    public Integer getMemberId() {
        return this.memberId;
    }

    public void setMemberId(Integer value) {
        this.memberId = value;
    }

    public Integer getPaperId() {
        return this.paperId;
    }

    public void setPaperId(Integer value) {
        this.paperId = value;
    }

    public Integer getStartTime() {
        return this.startTime;
    }

    public void setStartTime(Integer value) {
        this.startTime = value;
    }

    public Integer getEndTime() {
        return this.endTime;
    }

    public void setEndTime(Integer value) {
        this.endTime = value;
    }

    public Boolean getStatus() {
        return this.status;
    }

    public void setStatus(Boolean value) {
        this.status = value;
    }

    public Float getScore() {
        return this.score;
    }

    public void setScore(Float value) {
        this.score = value;
    }

    public Integer getCheckUserId() {
        return this.checkUserId;
    }

    public void setCheckUserId(Integer value) {
        this.checkUserId = value;
    }

    public Integer getCheckTime() {
        return this.checkTime;
    }

    public void setCheckTime(Integer value) {
        this.checkTime = value;
    }

    public String getCheckContent() {
        return this.checkContent;
    }

    public void setCheckContent(String value) {
        this.checkContent = value;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("Id", getId())
            .append("MemberId", getMemberId())
            .append("PaperId", getPaperId())
            .append("StartTime", getStartTime())
            .append("EndTime", getEndTime())
            .append("Status", getStatus())
            .append("Score", getScore())
            .append("CheckUserId", getCheckUserId())
            .append("CheckTime", getCheckTime())
            .append("CheckContent", getCheckContent())
            .toString();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder()
            .append(getId())
            .toHashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if(!(obj instanceof MemberPaperRecordEntity)) {
            return false;
        }
        if(this == obj) {
            return true;
        }
        MemberPaperRecordEntity other = (MemberPaperRecordEntity) obj;
        return new EqualsBuilder()
            .append(getId(), other.getId())
            .isEquals();
    }
}

